package com.github.lee.mvvm.core.ui.web

import com.tencent.smtt.sdk.WebChromeClient
import com.tencent.smtt.sdk.WebView

class CustomizeWebChromeClient(private val webHandler: WebHandler) : WebChromeClient() {

    override fun onProgressChanged(wv: WebView?, progress: Int) {
        super.onProgressChanged(wv, progress)
        webHandler.setLoadProgress(progress)
    }

}